package com.itheima.twoarray;

public class Test1 {
    public static void main(String[] args) {
        int[][] arr = new int[3][3];
        System.out.println(arr);
        System.out.println(arr[0]);
        System.out.println(arr[0][0]);
        System.out.println("----------------------");
        arr[0][0] = 11;
        arr[0][1] = 22;
        arr[0][2] = 33;
        arr[1][0] = 33;
        arr[1][1] = 55;
        arr[1][2] = 44;
        arr[2][0] = 11;
        arr[2][1] = 00;
        arr[2][2] = 55;
        int[] max=new int[3];
        for (int i = 0; i <arr.length ; i++) {
            for (int j = 0; j <arr[i].length ; j++) {
                if(arr[i][j]>max[i]){
                    max[i]=arr[i][j];
                }
                System.out.println(arr[i][j]);
            }
        }
        for (int i = 0; i <max.length ; i++) {
            System.out.print(max[i]+ " ");
        }

    }
}
